package com.hangzhou.xyj.net.request;

import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/2/22  15:34
 * <p/>
 * 说明：更新名字 请求
 */
public class UpdateNameReq extends BaseRequest {

    public UpdateNameReq(int userId, String name) {
        setUserId(userId);
        setName(name);
    }

    private void setUserId(int userId) {
        add("userId", userId);
    }

    private void setName(String name) {
        add("name", name);
    }


    @Override
    public String getUrl() {
        return API.UPDATE_NAME;
    }


}
